home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / GNU-SMALLTALK.lha / examples / README < prev    next >
Text File  |  1992-02-15  |  2KB  |  50 lines

  1. This directory contains some working example GNU Smalltalk programs.
  2. The programs are:
  3.  
  4. printHier.st    prints out the class hierarchy, indented according to
  5.         the number of super classes a class has.
  6.  
  7. suntool.st    This is a simple demonstration of interfacing to the SunView
  8.         graphical user interface.  You'll need to make a copy of
  9.         the distribution in a separate directory, then copy
  10.         suntool.st, win.c CFuncs.st and Makefile to that directory.
  11.         You then need to edit mstcint.c to uncomment the line
  12.         that defines SUN_WIN_HACKS.  Recompile the system (your Sun
  13.         will have to have the SunView programmer's library loaded
  14.         on it; it's an optional piece of software on your SunOS
  15.         distribution tapes).  Run the system via "mst -V suntool.st"
  16.         After creating a new binary image and saving it, and after
  17.         a little while loading suntool.st, you should see
  18.         a SunView window appear with a few graphical objects on it
  19.         that you can interact with.
  20.  
  21. mem-usage.st    This is really more of a test suite kind of program.  It
  22.         iterates through all the objects in the system, counting
  23.         up how much storage has been used by each, and printing a
  24.         total at the end.  It has found more bugs in the memory
  25.         management system than I care to admit.
  26.  
  27. Host.st        Not yet implemented...intended to be an interface to the
  28.         internet name lookup services and socket creation
  29.         primitives.
  30.  
  31. defwin.c    Standalone C program for creating parts of the suntool.st
  32.         demo system.
  33.  
  34. pids.c        Provides primitives for doing UNIX process hacking from
  35.         within GNU Smalltalk.  Copy into a directory with a working
  36.         Smalltalk, edit mstcint.c to call definePidFuncs()
  37.         along with the other Smalltalk-callable C function definitions
  38.         and edit the Makefile to make USER_OBJS include pids.c.
  39.         up.st provides the interface from within Smalltalk; load it
  40.         and have fun.
  41.  
  42. RandomInteger.st
  43.         Provides methods that generate a random integer in a specific
  44.         range.
  45.  
  46.  
  47. See also the files in ../stix for a more extensive example of a Smalltalk
  48. application that interfaces to C code (and X Window).
  49.  
  50.